// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC

@use "ds/typography.scss" as t;
@use "refactor/common-refactor.scss" as deprecated;
.tool-window {
  padding: 0 0 deprecated.$s-24 deprecated.$s-12;
  display: grid;
  grid-auto-rows: max-content;
  gap: deprecated.$s-4;
  height: 100%;
}

.file-name {
  @include t.use-typography("body-small");
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-grow: 100;
  height: 100%;
}

.loading {
  @include t.use-typography("body-small");
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: deprecated.$s-32;
  padding-left: calc(deprecated.$s-12 + deprecated.$s-2);
  color: var(--color-foreground-secondary);
}

.special-title {
  @include deprecated.textEllipsis;
  color: var(--title-foreground-color-hover);
  margin-left: deprecated.$s-2;
  text-align: left;
}

.file-link {
  @extend .button-tertiary;
  height: deprecated.$s-32;
  width: deprecated.$s-28;
  border-radius: deprecated.$br-8;
  svg {
    @extend .button-icon;
    stroke: var(--icon-foreground);
    fill: var(--title-foreground-color-hover);
  }
}

.library-content {
  width: 100%;
  display: grid;
  grid-auto-rows: max-content;
  gap: deprecated.$s-4;
}

.asset-title {
  margin-left: deprecated.$s-28;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: deprecated.$s-8;
}

.no-found-icon {
  @include deprecated.flexCenter;
  background-color: var(--not-found-background-color);
  border-radius: deprecated.$br-circle;
  height: deprecated.$s-48;
  width: deprecated.$s-48;
  svg {
    @extend .button-icon;
    height: deprecated.$s-24;
    width: deprecated.$s-24;
    stroke: var(--not-found-foreground-color);
  }
}

.no-found-text {
  @include deprecated.bodySmallTypography;
  color: var(--not-found-foreground-color);
}
